<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <p>{{msg}}</p>
        <p>{{num}} {{bool}}</p>
        <p>{{bool? "ok" :"no ok"}}</p>
        <p>{{bool || aaa() }}</p>
        <p>{{big}}</p>
        <p>{{aaa().name}}</p>
        <p>{{lala.name}}</p>
        <p>{{arr[1]}}</p>
    </div>
    <script src="./js/vue.js"></script>
    <script>
        const vm = new Vue({
            data: {
                msg: "hello vue",
                num: 123,
                bool: false,
                n: null,
                u: undefined,
                big: 566n,
                arr: [1, 2, 3],
                aaa: function sss(ad) {
                    console.log("别搞我了");
                    return {
                        type: 1,
                        name: "VUE课程"
                    };
                },
                lala: {
                    name: "啦啦啦",
                    age: 14,
                }
            }
        });
        vm.$mount("#app");
    </script>
</body>

</html>